﻿<UserControl x:Class="WpfImageDuplicates.ShowAvailableFilters"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="500">
    <Grid>
        <ListBox Grid.Row="0" Name="lstItems" ItemsSource="{Binding}"  SelectionMode="Multiple"  
                 ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>                    
                    <WrapPanel ItemWidth="100" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Border Width="Auto" Height="Auto" Margin="1,1,1,1" Padding="1,1,1,1" BorderBrush="Black" BorderThickness="1,1,1,1">
                        <TextBlock Text="{Binding Path=TypeName}" FontSize="9" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"></TextBlock>
                    </Border>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
